package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.AuditOpinionsResult;
import com.itheima.common.ResponseResult;
import com.itheima.common.SetRecordsResult;
import com.itheima.pojo.HmQuestions;
import com.itheima.pojo.HmQuestionsAudits;
import com.itheima.pojo.Query;
import com.itheima.util.PageResult;
import com.itheima.util.QuestionAdd;
import com.itheima.util.QuestionsAddResult;

import java.util.List;

public interface QuestionsService extends IService<HmQuestionsAudits> {

    AuditOpinionsResult auditOpinions(Integer id);

    SetRecordsResult setRecords(Integer id);

    PageResult findPage(Query query);

    ResponseResult deleteById(Integer id);

    QuestionsAddResult add(HmQuestions hmQuestions);

    QuestionAdd findById(Integer id);

    ResponseResult modify(HmQuestions hmQuestions);

    ResponseResult modifyByPublishState(Integer id, Integer publishState);

    ResponseResult modifyByChoiceState(Integer id, Integer choiceState);

    ResponseResult modifyByChkstate(Integer id, HmQuestions hmQuestions,String s);

    List<HmQuestions> findAll();


}
